Validation support and associated updates#59
Conversation
Came across an old oddity during the test tools installation revamp. Relocation to a place which makes more sense
Review Summary by QodoAdd results validation and refactor test tools installation
WalkthroughsDescription• Implement results file validation for auto and throughput modes • Refactor test tools installation using wget/curl/git fallback approach • Move gather_data execution after tools installation completion • Add Pydantic schema files for auto and throughput result validation • Replace hardcoded tool paths with TOOLS_BIN environment variable • Convert CSV results to JSON and verify against schema files Diagramflowchart LR
A["Test Tools Installation"] -->|wget/curl/git| B["TOOLS_BIN Directory"]
B --> C["Gather Hardware Data"]
C --> D["Run IOzone Tests"]
D --> E["Generate CSV Results"]
E --> F["Convert to JSON"]
F --> G["Validate Against Schema"]
G -->|Pass/Fail| H["Archive Results"]
File Changes1. iozone/iozone_run.sh
|
Code Review by Qodo
|
dvalinrh
left a comment
There was a problem hiding this comment.
One thing I found, please address al what qodo found.
Description
Adds results file validation for auto and throughput modes
Adds tooling updates (test_tools download changes, calling of package_tool) which enable the validation updates and future work
Note: if running throughput mode in a non-default way, disable validation since validation currently does do dynamic results format
Before/After Comparison
Before: No validation of results files
After: Validation of results files
Clerical Stuff
This closes #58
Relates to JIRA: RPOPC-917
CSV & JSON files used in validation:
results_iozone.json.tput.txt
results_iozone.csv.tput.txt
results_iozone.json.auto.txt
results_iozone.csv.auto.txt